  /**
   * Generate time : 2013-07-16 7:18:15
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBNeighboringWorkingface 
 * table comment : 相邻采面关系 
 */
public class ZMCBNeighboringWorkingface extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdMainId = " ";		/* 主采面ID*/
	private String fdNeighborhoodId = " ";		/* 相邻采面ID*/
	private String fdPosition = " ";		/* 方位*/
	private String fdName = " ";		/* 方位*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMainId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主采面ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNeighborhoodId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("相邻采面ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPosition");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("方位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("相邻工作面名称");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBNeighboringWorkingface() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdMainId - 主采面ID
	 * @return the fdMainId
	 */
	public String getFdMainId() {
		return this.fdMainId;
	}
	
	/**
	 * set the fdMainId - 主采面ID
	 */
	public void setFdMainId(String fdMainId) {
		this.fdMainId = fdMainId;
	}
	
	/**
	 * get the fdNeighborhoodId - 相邻采面ID
	 * @return the fdNeighborhoodId
	 */
	public String getFdNeighborhoodId() {
		return this.fdNeighborhoodId;
	}
	
	/**
	 * set the fdNeighborhoodId - 相邻采面ID
	 */
	public void setFdNeighborhoodId(String fdNeighborhoodId) {
		this.fdNeighborhoodId = fdNeighborhoodId;
	}
	
	/**
	 * get the fdPosition - 方位
	 * @return the fdPosition
	 */
	public String getFdPosition() {
		return this.fdPosition;
	}
	
	/**
	 * set the fdPosition - 方位
	 */
	public void setFdPosition(String fdPosition) {
		this.fdPosition = fdPosition;
	}
	
	/**
	 * get the fdName - 相邻工作面名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 相邻工作面名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMainId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMainId")), fdMainId));
		setFdNeighborhoodId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNeighborhoodId")), fdNeighborhoodId));
		setFdPosition(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPosition")), fdPosition));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMainId",StringUtils.toString(fdMainId, eiMetadata.getMeta("fdMainId")));	
			map.put("fdNeighborhoodId",StringUtils.toString(fdNeighborhoodId, eiMetadata.getMeta("fdNeighborhoodId")));	
			map.put("fdPosition",StringUtils.toString(fdPosition, eiMetadata.getMeta("fdPosition")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			
		return map;
	
	}
}